interface UpdateProfileAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface UpdateProfileAPIData {
  avatar: string
  mobile: string
  username: string
}

export function updateProfileAPI(data: UpdateProfileAPIData, token: string) {
  return httpInstance.post<UpdateProfileAPIResData, UpdateProfileAPIData>(
    '/api/driver/editMyDriver',
    data,
    { headers: { token } },
  )
}
